package liy.demo.wikiproject.util;

import liy.demo.wikiproject.resp.UserResp;

import java.io.Serializable;

public class LoginUserContext implements Serializable {

    private static ThreadLocal<UserResp> user = new ThreadLocal<>() ;

    public static UserResp getUser() {return user.get();}

    public static void setUser(UserResp user) {
        LoginUserContext.user.set(user);
    }
}
